import { RouteRecordRaw } from "vue-router"

/*
 * @Description: 
 * @Autor: 万洲
 * @Date: 2022-11-15 16:38:14
 * @LastEditors: 万洲
 * @LastEditTime: 2022-11-22 14:38:21
 */
const routes: Array<RouteRecordRaw> = [
    {
        path: '/login',
        name: '/login',
        component: () => import('@/views/Login/index')
    },
    {
        path: '/',
        name: 'Layout',
        component: () => import('@/views/Layout/index'),
        redirect:"/index",
        children: [
            {
                ...(() => { const path = "/index"; return { path, name: path } })(),
                component: () => import('@/views/Index'),
            }
        ]
    },

]

export default routes